package com.kitty.game.equip.model;

/**
 * HunQiAttrField 魂器属性
 *
 * @author StanWind
 * @create 2020 - 05 - 01 10:57 PM
 */
public class HunQiAttrField {

    /**
     * 混沌点数
     */
    private byte hunDun;

    /**
     * 阳占混沌百分比
     */
    private byte yangRate;

    /**
     * 阳属性名
     */
    private String yangAttrName;
    /**
     * 阳属性值
     */
    private short yangAttrVal;

    /**
     * 阴属性名
     */
    private String yinAttrName;

    /**
     * 阴属性值
     */
    private short yinAttrVal;

    public byte getHunDun() {
        return hunDun;
    }

    public void setHunDun(byte hunDun) {
        this.hunDun = hunDun;
    }

    public byte getYangRate() {
        return yangRate;
    }

    public void setYangRate(byte yangRate) {
        this.yangRate = yangRate;
    }

    public String getYangAttrName() {
        return yangAttrName;
    }

    public void setYangAttrName(String yangAttrName) {
        this.yangAttrName = yangAttrName;
    }

    public short getYangAttrVal() {
        return yangAttrVal;
    }

    public void setYangAttrVal(short yangAttrVal) {
        this.yangAttrVal = yangAttrVal;
    }

    public String getYinAttrName() {
        return yinAttrName;
    }

    public void setYinAttrName(String yinAttrName) {
        this.yinAttrName = yinAttrName;
    }

    public short getYinAttrVal() {
        return yinAttrVal;
    }

    public void setYinAttrVal(short yinAttrVal) {
        this.yinAttrVal = yinAttrVal;
    }

    public int queryYang() {
        return (int) Math.round(hunDun * 0.01 * yangRate);
    }

    public int queryYin() {
        return hunDun - queryYang();
    }
}
